<!DOCTYPE html>
<html>
    <head>
        <title>360湘江世纪城</title>
        <#include "controls/public_header.ftl">
		<script type="text/javascript" src="${model._contextPath}/web/resources/lib/formvalidator/formValidator-4.1.3.js"></script>
		<script type="text/javascript" src="${model._contextPath}/web/resources/lib/formvalidator/formValidatorRegex.js"></script>
		<script type="text/javascript">
		$(function(){
			PubOPT.jsEventLoad(pageJsEvent);
		});
		
		function pageJsEvent() {
			$.formValidator.initConfig({formID:"form1",theme:"xtframe",mode:'AutoTip',onError:function(){alert("具体错误，请看网页上的提示")}});
			$.formValidator.pageIsValid("1");
			$("#username").formValidator({onShow:"请输入用户名,只有输入\"maodong\"才是对的",onFocus:"用户名至少3个字符,最多18个字符",onCorrect:"该用户名可以注册"}).inputValidator({min:3,max:18,onError:"你输入的用户名非法,请确认"}).regexValidator({regExp:"username",dataType:"enum",onError:"用户名格式不正确"});
			$("#pwd").formValidator({onShow:"请输入密码",onFocus:"至少2个长度",onCorrect:"密码合法"}).inputValidator({min:2,empty:{leftEmpty:false,rightEmpty:false,emptyError:"密码两边不能有空符号"},onError:"密码不能为空,请确认"});
			$("#pwd2").formValidator({onShow:"输再次输入密码",onFocus:"至少2个长度",onCorrect:"密码一致"}).inputValidator({min:2,empty:{leftEmpty:false,rightEmpty:false,emptyError:"重复密码两边不能有空符号"},onError:"重复密码不能为空,请确认"}).compareValidator({desID:"pwd",operateor:"=",onError:"2次密码不一致,请确认"});
			$("#email").formValidator({empty:true,onShow:"请输入邮箱",onFocus:"邮箱至少6个字符,最多100个字符",onCorrect:"恭喜你,你输对了",defaultValue:""}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onError:"你输入的邮箱格式不正确"});
		}
		
		function test(){
		//	alert($.formValidator.pageIsValid('1'));
		}
		</script>
    </head>
    <body>
		<div id="container">
			<div id="header">
				<#include "controls/user_tool.ftl">
				<div id="globalNav">
					<a href="${model._contextPath}/index.jsp" alt="湘江世纪城" title="湘江世纪城" target="_self"><div class="logo1"></div></a>
				</div>
			</div>
			<div id="main">
				<!-- 注册信息-->
				<form action="${model._contextPath}/p100016.html" method="post" name="form1" id="form1">
				<div class="zcxx">
					<div class="zcxx_form">
						<div class="zct" style="position:relative">
							<div class="zctu1"></div>
							<div class="zczi"><span class="text2">*</span>用户名：</div>
							<div><input id="username" name="username" type="text" class="wby" <#if model._param.username?exists> value="${model._param.username}" </#if> /></div>
						</div>
						<div class="zct" style="position:relative">
							<div class="zctu2"></div>
							<div class="zczi"><span class="text2">*</span>请设置密码：</div>
							<div><input id="pwd" name="pwd" type="password" class="wby"/></div>
						</div>
						<div class="zct" style="position:relative">
							<div class="zctu2"></div>
							<div class="zczi"><span class="text2">*</span>请确认密码：</div>
							<div><input id="pwd2" name="pwd2" type="password" class="wby"/></div>
						</div>
						<div class="zct">
							<div class="zczi">姓名：</div>
							<div><input id="realname" name="realname" type="text" class="wby" <#if model._param.realname?exists> value="${model._param.realname}" </#if> /></div>
						</div>
						<div class="zct">
							<div class="zczi">手机号码：</div>
							<div><input id="mobile" name="mobile" type="text" class="wby" <#if model._param.mobile?exists> value="${model._param.mobile}" </#if> /></div>
						</div>
						<div class="zct">
							<div class="zczi">家庭地址：</div>
							<div><input id="address" name="address" type="text" class="wby" <#if model._param.address?exists> value="${model._param.address}" </#if> /></div>
						</div>
						<div class="zct">
							<div class="zczi">电子邮件：</div>
							<div><input id="email" name="email" type="text" class="wby" <#if model._param.email?exists> value="${model._param.email}" </#if> /></div>
						</div>
						<div class="zct1">
							<label>
								<input name="checkbox" type="checkbox" value="checkbox" checked>
							</label>
							我已阅读并同意<span class="text10"><a href="#">《用户注册协议》</a></span>
						</div>
						<div class="zct1">
							<input type="image" src="${model._contextPath}/web/resources/images/zctt_06.jpg"/>
						</div>
					</div>
					<div class="zcxx_tu"><img src="${model._contextPath}/web/resources/images/zctt_03.jpg" width="336" height="420"></div>
				</div>
				</form>
			</div> 
			<div width="100%" height="127"> 
				<#include "controls/footer.ftl">
			</div>
		</div>
    </body>
</html>